package com.geofitti.andoird;

import android.location.LocationListener;
import android.location.Location;
import android.os.Bundle;

public class GeoFittiLocationListener implements LocationListener    {
	
	Double localLat;
	Double localLong;
	
	
	public GeoFittiLocationListener(Double pLat, Double pLong){	
		super();
		localLat = pLat;
		localLong = pLong;

	}

	public void onLocationChanged(Location loc)    	{

    	localLat = loc.getLatitude();
    	localLong = loc.getLongitude();
    	
    	
//    	String Text = "My current location is: " 
//    	+	"Latitud = " + loc.getLatitude() 
//    	+	"Longitud = " + loc.getLongitude();
    	
    	

    	//Toast.makeText( getApplicationContext(), Text, Toast.LENGTH_SHORT).show();

	}
	
	public void onProviderDisabled(String provider){
		//Toast.makeText( getApplicationContext(), "Gps Disabled", Toast.LENGTH_SHORT ).show();
	}
	
	public void onProviderEnabled(String provider)   	{

		//Toast.makeText( getApplicationContext(), "Gps Enabled",	Toast.LENGTH_SHORT).show();
	}

	
	public void onStatusChanged(String provider, int status, Bundle extras){

	}

}
